Moving object recognition, speed estimation, and tagging

ABSTRACT

Techniques for estimating speed for an object in a video (either stream or file) are described. In particular, once an object has been recognized, additional data (such as size) for that recognized object is used in a determination of a 3D position of that object in a plurality of frames. An estimated speed may be found using a difference between 3D positions of the object in different frames over the time between the frames.

BACKGROUND

State of the art video-based speed estimation techniques rely on finding special patterns, such as explicit stationary markers on a road or license plates attached to a vehicle, in frames of the video. As such, for current video-based speed estimation additional physical resources (such as physical markers) and/or computational resources (such as tracking license plates) have been necessary thus increasing cost and complexity. Note to that systems that rely on stationary markers may also fail if that marker is covered (for example, a white marker on a road covered by snow) or otherwise not visible.

BRIEF DESCRIPTION OF DRAWINGS

Various embodiments in accordance with the present disclosure will be described with reference to the drawings, in which:

FIG. 1 illustrates embodiments of a system for determining a speed of an object from a video file or stream.

FIG. 2 illustrates embodiments of a system for determining a speed of an object from a video file or stream.

FIG. 3 illustrates an exemplary 3D position calculation and mapping.

FIG. 4(A) illustrates an object moving through a sequence of video frames.

FIG. 4(B) illustrates an exemplary bounding box for the object moving through a sequence of video frames.

FIG. 4(C) illustrates the use of anchor points for the object moving through a sequence of video frames.

FIG. 5 is a flow diagram illustrating operations of a method for recognizing a moving object in a video and determining an estimated speed of that object according to some embodiments.

FIG. 6 is a flow diagram illustrating operations of a method for recognizing a moving object in a video and determining an estimated speed of that object according to some embodiments.

FIG. 7 illustrates an example provider network environment according to some embodiments.

FIG. 8 illustrates an example data center that implements an overlay network on a network substrate using IP tunneling technology according to some embodiments.

FIG. 9 is a block diagram of an example provider network that provides a storage service and a hardware virtualization service to customers according to some embodiments.

FIG. 10 is a block diagram illustrating an example computer system that may be used in some embodiments.

FIG. 11 illustrates a logical arrangement of a set of general components of an exemplary computing device that can be utilized in accordance with various embodiments.

FIG. 12 illustrates an example of an environment for implementing aspects in accordance with various embodiments.

DETAILED DESCRIPTION

Various embodiments of methods, apparatus, systems, and non-transitory computer-readable storage media for video-based moving object detection and speed estimation and/or tagging are described.

As noted above, state of the art video-based speed estimation techniques rely on finding special patterns, such as explicit stationary markers on a road or license plates attached to a vehicle, in frames of the video. As such, for current video-based speed estimation additional physical resources (such as physical markers) and/or computational resources (such as tracking license plates) have been necessary thus increasing cost and complexity. Note to that systems that rely on stationary markers may also fail if that marker is covered (for example, a white marker on a road covered by snow) or otherwise not visible.

Detailed herein are embodiments of calculating an object's the speed based on one or more deep learning object detection algorithms without the constraints of background marker or special patterns like a license plate. The detected object and its speed can be tagged to the original video stream's meta data, which can be extended to use cases such as video query, video classification, etc. The estimated speed may be used for traffic research (such as speeds of vehicles in a given time period), traffic citations, etc.

FIG. 1 illustrates embodiments of a system for determining a speed of an object from a video file or stream. In this particular illustration, a provider network 100 includes various services 101, 103, and 107 to support the determination of the speed of an object from a video file or stream. In some embodiments, a speed calculation and 3D position workflow manager 119 is used to coordinate the different services, models, and modules to perform the task(s) of 3D position determination, speed calculation, tagging, etc. Note the services, models, and module illustrated are implemented in software stored in memory to be executed by hardware of the provider network 100 in some embodiments. In other embodiments, one or more of the services, model, or module is implemented entirely in hardware.

A provider network 100 provides users with the ability to utilize one or more of a variety of types of computing-related resources such as compute resources (e.g., executing virtual machine (VM) instances and/or containers, executing batch jobs, executing code without provisioning servers), data/storage resources (e.g., object storage, block-level storage, data archival storage, databases and database tables, etc.), network-related resources (e.g., configuring virtual networks including groups of compute resources, content delivery networks (CDNs), Domain Name Service (DNS)), application resources (e.g., databases, application build/deployment services), access policies or roles, identity policies or roles, machine images, routers and other data processing resources, etc. These and other computing resources may be provided as services, such as a hardware virtualization service that can execute compute instances, a storage service that can store data objects, etc. The users (or “customers”) of provider networks 100 may utilize one or more user accounts that are associated with a customer account, though these terms may be used somewhat interchangeably depending upon the context of use. Users may interact with a provider network 100 across one or more intermediate networks (e.g., the internal via one or more interface(s), such as through use of application programming interface (API) calls, via a console implemented as a website or application, etc. The interface(s) may be part of, or serve as a front-end to, a control plane of the provider network 100 that includes “backend” services supporting and enabling the services that may be more directly offered to customers.

To provide these and other computing resource services, provider networks 100 often rely upon virtualization techniques. For example, virtualization technologies may be used to provide users the ability to control or utilize compute instances (e.g., a VM using a guest operating system (O/S) that operates using a hypervisor that may or may not further operate on top of an underlying host O/S, a container that may or may not operate in a VM, an instance that can execute on “bare metal” hardware without an underlying hypervisor), where one or multiple compute instances can be implemented using a single electronic device. Thus, a user may directly utilize a compute instance hosted by the provider network to perform a variety of computing tasks, or may indirectly utilize a compute instance by submitting code to be executed by the provider network, which in turn utilizes a compute instance to execute the code (typically without the user having any control of or knowledge of the underlying compute instance(s) involved).

For example, in various embodiments, a “serverless” function may include code provided by a user or other entity that can be executed on demand Serverless functions may be maintained within provider network 100 and may be associated with a particular user or account, or may be generally accessible to multiple users and/or multiple accounts. Each serverless function may be associated with a URL, URI, or other reference, which may be used to call the serverless function. Each serverless function may be executed by a compute instance, such as a virtual machine, container, etc., when triggered or invoked. In some embodiments, a serverless function can be invoked through an application programming interface (“API”) call or a specially formatted HyperText Transport Protocol (“HTTP”) request message. Accordingly, users can define serverless functions that can be executed on demand, without requiring the user to maintain dedicated infrastructure to execute the serverless function. Instead, the serverless functions can be executed on demand using resources maintained by the provider network 100. In some embodiments, these resources may be maintained in a “ready” state (e.g., having a pre-initialized runtime environment configured to execute the serverless functions), allowing the serverless functions to be executed in near real-time.

A stationary video source 117 such as a video camera (such as a traffic camera, phone camera, etc.) records one or more objects 115 (such as one or vehicles on a road) from a single vantage point into a video file or stream. The stationary video source 117 intrinsics are used by a 3-dimensional (3D) position module or machine learning (ML) model 109 in determining a 3D position of an object. Intrinsics may include one or more of the following: focal length of the camera (the distance between the camera position and image plane), optical center (or principal point offset), skew coefficient, camera aperture (the physical dimension of the “film”), clipping planes, image size (for example, in pixels), and/or fit resolution gate.

The recorded video file or stream is processed by a video processing service 101 in some embodiments. The video processing service 101 provisions and scales the infrastructure needed to ingest streaming video data. It may also store (into video storage 113), encrypt, and index video data. The indexed data is stored based on timestamps generated by the video source 117, or timestamps generated by the video processing service 101 when it receives the video. Tags may be associated with timestamps for search and retrieval of specific video fragments for playback, analytics, and other processing. In some embodiments, a tag with speed and position information is associated with a particular video fragment such as a frame.

An object recognition service 103 takes in a video stream or file as an input and detects and recognizes objects in the video according to one or more supporting object recognition ML models. Note that depending upon the type of object to detect, different ML models may be used. For example, an object detection ML model that is trained to detect different varieties of tubular meats is likely not be the best object detection ML model to use to detect vehicles. In some embodiments, based upon the request and/or content of the video stream or file, the object recognition service 103 picks an object detection and/or recognition ML model to use. In other embodiments, the object detection ML model to use is included in the request (or indicated by the request) or a default object detection ML model is to be used.

Once the object recognition service 103 detects and recognizes an object, it queries an object database (such as internal object database 105(A) or external object database 105(B)) to get characteristics of the recognized object. In particular, at least a size of the recognized object is pulled from the object database.

The object characteristic(s) and frame are provided to the 3D position module or ML model 109 to be used in determining a 3D position of the object per frame to be evaluated. In some embodiments, the 3D position module or ML model 109 uses a “pinhole” camera approach to determine a 3D location. A pinhole camera is a simple camera without a lens and with a single small aperture. Light rays pass through the aperture and project an inverted image on the opposite side of the camera. In some embodiments, pinhole camera parameters are represented in a matrix which maps the 3D realworld scene into an image plane. Extrinsic parameters (such as rotation and translation) represent the location of the camera in the 3-D scene. Realworld points are transformed to camera coordinates using the extrinsics parameters and camera-based coordinates are mapped into the image plane using the intrinsics parameters.

The 3D position per frame to be evaluated and the timestamp associated with that frame are supplied to the speed calculation module 111 which determines a speed of an object based on a difference in 3D position over time. The objected may be tagged using the video processing service 101 or object recognition service 103 with position information and speed information per frame as metadata. In some embodiments, the 3D position module or ML model 109 and/or speed calculation module 111 are models hosted as a part of a ML model hosting service 107 which hosts a plurality of user selectable, generated, and/or configurable ML models. In some embodiments, the object recognition service 103 (which may just be a ML model), 3D position module or ML model 109, and/or speed calculation module 111, etc. are a part of a speed and 3D position service 121.

FIG. 1 includes circles with numbers inside that illustrate an exemplary flow. A recorded video file or stream is provided to the provider network 100 at circle 1. In some instances, the recorded video file or stream is processed at circle 2 and stored in video storage 113 at circle 3.

At some point in time, a request is received by the provider network 100 (such as by the speed calculation and 3D position workflow manager 119), at circle 4, to analyze the recorded video file or stream for an estimate of speed for at least one object of the recorded video file or stream. In some embodiments, the request includes one or more of: an object type to analyze (for example, vehicles and not birds), an initial object identifier (for example, a user generated bounding box), a video file or stream identifier, an indication of a number of objects per frame to track and analyze, video source intrinsics (if not already provided they could be given in the request or provided by the video source 117 at circle 6), etc.

At circle 5, the video (or proper subsets thereof) is provided to the object recognition service 103. The object recognition service 103 performs object detection and recognition at circle 7. After an object to be evaluated for speed has been detected and then recognized, a query to an object database 105 is made for characteristics of the object at circle 8.

At least the size of the object is passed to the 3D position module or ML model 109 along with the corresponding frame at circle 9. The 3D position module or ML model 109 determines the position of the object at circle 10 and passes that information along with at least a timestamp of the frame to the speed calculation module 111 at circle 11.

The speed calculation module 111 determines an approximate speed based on the difference of 3D positions for an object over a period of time based on the frames at circle 12. A tag with that information is sent to the video processing service 101 at circle 13 for inclusion in the video stream or file which may be stored in video storage 113. A result of the request is provided at circle 14.

FIG. 1 illustrates embodiments of a system for determining a speed of an object from a video file or stream. FIG. 2 is similar to FIG. 1, but does not use a provider network, but uses a dedicated computing device 200. Note modules and models illustrated are implemented in software stored in memory to be executed by hardware of the provider network 100 in some embodiments. In other embodiments, one or more of the services or module is implemented entirely in hardware.

A stationary video source 117 such as a video camera (such as a traffic camera, phone camera, etc.) records one or more objects 115 (such as one or vehicles on a road) from a single vantage point into a video file or stream. The stationary video source 117 intrinsics are used by a 3-dimensional (3D) position module or machine learning (ML) model 109 in determining a 3D position of an object. Intrinsics may include one or more of the following: focal length of the camera (the distance between the camera position and image plane), optical center, skew coefficient, camera aperture (the physical dimension of the “film”), clipping planes, image size (for example, in pixels), and/or fit resolution gate.

The recorded video file or stream is processed by a video processing service 201 in some embodiments. The video processing module 201 may store (into video storage 213), encrypt, and index the video data. The indexed data is stored based on timestamps generated by the video source 217, or timestamps generated by the video processing service 201 when it receives the video. Tags may be associated with timestamps for search and retrieval of specific video fragments for playback, analytics, and other processing. In some embodiments, a tag with speed and position information is associated with a particular video fragment such as a frame.

An object recognition module 203 takes in a video stream or file as an input and detects and recognizes objects in the video according to one or more supporting object recognition ML models. Note that depending upon the type of object to detect, different ML models may be used. For example, an object detection ML model that is trained to detect different varieties of tubular meats is likely not be the best object detection ML model to use to detect vehicles. In some embodiments, based upon the request and/or content of the video stream or file, the object recognition module 203 picks an object detection ML model to use. In other embodiments, the object detection ML model to use is included in the request (or indicated by the request) or a default object detection ML model is to be used.

Once the object recognition module 203 detects and recognizes an object, it queries an object information storage 205 to get characteristics of the recognized object. In particular, at least a size of the recognized object is pulled from the object data store.

The object characteristic(s) and frame are provided to the 3D position module or ML model 209 to be used in determining a 3D position of the object per frame to be evaluated. In some embodiments, the 3D position module or ML model 209 uses a “pinhole” camera approach to determine a 3D location. A pinhole camera is a simple camera without a lens and with a single small aperture. Light rays pass through the aperture and project an inverted image on the opposite side of the camera. In some embodiments, pinhole camera parameters are represented in a matrix which maps the 3D realworld scene into an image plane. Extrinsic parameters (such as rotation and translation) represent the location of the camera in the 3-D scene. Realworld points are transformed to camera coordinates using the extrinsics parameters and camera-based coordinates are mapped into the image plane using the intrinsics parameters.

The 3D position per frame to be evaluated and the timestamp associated with that frame are supplied to the speed calculation module 211 which determines a speed of an object based on a difference in 3D position over time. The objected may be tagged using the video processing module 201 or object recognition module 203 with position information and speed information per frame as metadata. In some embodiments, the object recognition module 203, 3D position module or ML model 109, and/or speed calculation module 111, etc. are a part of a speed and 3D position module 215.

FIG. 3 illustrates an exemplary 3D position calculation and mapping. As shown, a 3D planar 309 is mapped to a 2D object in the image plane. The points (M_(i)) of this planar 309 are the four corner points of 3D planar in 3D space, and points (m_(i)) are the corresponding mapping in the image in a virtual image plane 307. When the 3D planar is moving or rotating in 3D space, its corresponding projection in the virtual image plane will change accordingly.

The planar's 3D position 305 is calculated with respect to camera focal point 301 when the camera's instrinsic values (based on camera calibration process) are known along with the 3D planar's physical size 311 and the 3D planar's projection contour on the image plane (shaped by the m_(i) points).

In some embodiments, the focal length comprises two values (f_(x) and f_(y)), optical center comprise two values (x_(o) and x_(o)), and the skew coefficient comprises one value (s) and the intrinsics are in the form of a matrix:

$K = \begin{pmatrix} f_{x} & s & x_{o} \\ 0 & f_{y} & y_{o} \\ 0 & 0 & 1 \end{pmatrix}$

The intrinsics can be converted to their realworld counter parts:

$F_{x} = {f_{x}\frac{W}{w}}$ $F_{y} = {f_{y}\frac{H}{h}}$ $X_{o} = {x_{o}\frac{W}{w}}$ $Y_{o} = {y_{o}\frac{H}{h}}$

A 3D position is calculated using based on the intrinsic and extrinsic values. In some embodiments, by multiplying the intrinsic matrix with an extrisic matrix comprising a 3D translation and 3D rotation.

FIG. 4(A) illustrates an object moving through a sequence of video frames. As shown, a video source had captured a plurality of frames 401-405. Each frame 401-405 is associated with a time stamp as noted above. In these frames 401-405, a vehicle has been detected as an object of interest (for example by object recognition service 103 or object recognition model 303) and a bounding box 407 has been associated with the object. Note that shapes other than a box may be used as defined by anchor points. Additionally, as little as three points on the image may be needed to “track” an object through the frames. As shown, in each frame the bounding box 407 moves along with the object of interest. The speed of the object of interest is calculated using the bounding box 407 in some embodiments. Note that the speed of the object of interest may be made relative to two or more frames. For example, the distance change of the object of interest in the 3D space from frame 0 (at time 0) 401 to frame 1 (at time 1) 403 over that time period may be used to estimate speed, or the distance change of the object of interest in the 3D space from frame 0 (at time 0) 401 to frame N (at time N) 405 to estimate speed, etc. In some embodiments, the location of the bounding box 407, the estimated speed, and 3D position may be stored as tag metadata associated with a frame.

FIG. 4(B) illustrates an exemplary bounding box for the object moving through a sequence of video frames. In particular, the bounding box is tightly aligned with the object. As shown, the bounding box leaves little, if no, extra space between the object and the edges of the box.

FIG. 4(C) illustrates the use of anchor points for the object moving through a sequence of video frames. In this example, three anchor points on the object are used to identify the object. In some embodiments, at least one anchor point is associated with a logo or emblem of the object being evaluated. Note that embodiments discussed herein do not require the points to be in a 3D planar as shown in FIG. 3.

In this example, there are three anchor points attached to the car that are detected: 1) a logo on the front of the car, a front wheel on the left, and a front mirror on the left. When the specifications of the car are known, the distances between those three points in 3D space can be determined and their projected distances on the image frame can be measure. From this a the 3D position may be calculated.

FIG. 5 is a flow diagram illustrating operations of a method for recognizing a moving object in a video and determining an estimated speed of that object according to some embodiments. Some or all of the operations (or other processes described herein, or variations, and/or combinations thereof) are performed under the control of one or more computer systems configured with executable instructions and are implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) executing collectively on one or more processors, by hardware or combinations thereof. The code is stored on a computer-readable storage medium, for example, in the form of a computer program comprising instructions executable by one or more processors. The computer-readable storage medium is non-transitory. In some embodiments, one or more (or all) of the operations are performed by the models, modules, and services of the other figures.

At 501, a video stream or file to evaluate for recognizing a moving object and its estimated speed is received. For example, a video from a stationary camera is received in a provider network.

In some embodiments, the received video stream or file is processed at 503. For example, the video stream or file may be indexed such that frames of the video stream or file are associated with a timestamp. Note that two frames will not share the same timestamp.

At 505, a request to determine an estimated speed of one or more objects of the received video stream or file is received. Note the order of the illustrated flow may not be as shown. For example, the request may come before the video ingestion. Examples of content of a request have been detailed above.

In some embodiments, an object detection and recognition machine learning model to use is selected at 507. This selection may be based on one or more factors including, but not limited to: the content of the video file, the request itself, and an indication of failure of a previous object detection and recognition model. Note that failure may mean no recognition or less than optimal (such as too many false results, too many resources used, etc.).

At 509, one or more objects per frame to evaluate are detected according to the request at 509. For example, an object detection and recognition service may be used to detect objects. In some embodiments, frames to utilize for detection (and speed estimation) are i-frames, key frames, or i-slices of frames. Note the request may indicate what type of object to detect. An example of an object to detect is a car.

One or more objects of interest are recognized (identified) from the detected object(s) at 511. For example, an object detection and recognition service may be used to recognize objects. Recognition further refines the result of the detection. For example, a car may be recognized as a certain make and model. Note that detection and recognition may be considered to be the same thing in certain implementations.

A query for information (such as size of) about the object of interest is made at 513. For example, a query to a database about the size of a make and model of a car.

A calculation of a 3D position of the object of interest is made based on the queried information about the object of interest and points of interest relating to the object of interest (such as a bounding box surrounding the object of interest or anchor points) at 515. Note that this calculation requires the camera intrinsics be known.

An estimated speed of the object of interest is made by determining a difference between 3D positions in at least two frames divided by the time between the frames at 517. In some embodiments, the estimated speed has errors. Techniques such as Kalman filtering, etc. may be used to fine tune the estimate.

Note that embodiments discussed herein do not require the points to be in a 3D planar as will be discussed with respect to FIG. 4(C).

A tag is added to the metadata of the video containing the object of interest comprising its estimated speed and/or 3D position at 519.

In some embodiments, an indication of the resulting estimated speed is provided to the requester. Further, in some embodiments, the camera intrinsics are received prior to the calculation of any 3D position.

FIG. 6 is a flow diagram illustrating operations of a method for recognizing a moving object in a video and determining an estimated speed of that object according to some embodiments. Some or all of the operations (or other processes described herein, or variations, and/or combinations thereof) are performed under the control of one or more computer systems configured with executable instructions and are implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) executing collectively on one or more processors, by hardware or combinations thereof. The code is stored on a computer-readable storage medium, for example, in the form of a computer program comprising instructions executable by one or more processors. The computer-readable storage medium is non-transitory. In some embodiments, one or more (or all) of the operations are performed by the models, modules, and services of the other figures.

At 601, object recognition and speed estimation and tagging thereof are performed for a video. For example, aspects of the flow of FIG. 5 are performed.

At some point later in time, a request for an estimate speed of the recognized object is received. In some embodiments, this request includes one or more of: a timestamp of a frame including the object, an indication of a specific object (such as a specific make and model of a vehicle), an indication of a general object (such as a vehicle type), and an identifier of the video.

The estimated speed is retrieved from metadata for the video based on the request content at 605. The estimated speed is provided to the requester at 607.

FIG. 7 illustrates an example provider network (or “service provider system”) environment according to some embodiments. A provider network 700 may provide resource virtualization to customers via one or more virtualization services 710 that allow customers to purchase, rent, or otherwise obtain instances 712 of virtualized resources, including but not limited to computation and storage resources, implemented on devices within the provider network or networks in one or more data centers. Local Internet Protocol (IP) addresses 716 may be associated with the resource instances 712; the local IP addresses are the internal network addresses of the resource instances 712 on the provider network 700. In some embodiments, the provider network 700 may also provide public IP addresses 714 and/or public IP address ranges (e.g., Internet Protocol version 4 (IPv4) or Internet Protocol version 6 (IPv6) addresses) that customers may obtain from the provider 700.

Conventionally, the provider network 700, via the virtualization services 710, may allow a customer of the service provider (e.g., a customer that operates one or more client networks 750A-750C including one or more customer device(s) 752) to dynamically associate at least some public IP addresses 714 assigned or allocated to the customer with particular resource instances 712 assigned to the customer. The provider network 700 may also allow the customer to remap a public IP address 714, previously mapped to one virtualized computing resource instance 712 allocated to the customer, to another virtualized computing resource instance 712 that is also allocated to the customer. Using the virtualized computing resource instances 712 and public IP addresses 714 provided by the service provider, a customer of the service provider such as the operator of customer network(s) 750A-750C may, for example, implement customer-specific applications and present the customer's applications on an intermediate network 740, such as the Internet. Other network entities 720 on the intermediate network 740 may then generate traffic to a destination public IP address 714 published by the customer network(s) 750A-750C; the traffic is routed to the service provider data center, and at the data center is routed, via a network substrate, to the local IP address 716 of the virtualized computing resource instance 712 currently mapped to the destination public IP address 714. Similarly, response traffic from the virtualized computing resource instance 712 may be routed via the network substrate back onto the intermediate network 740 to the source entity 720.

Local IP addresses, as used herein, refer to the internal or “private” network addresses, for example, of resource instances in a provider network. Local IP addresses can be within address blocks reserved by Internet Engineering Task Force (IETF) Request for Comments (RFC) 1918 and/or of an address format specified by IETF RFC 4193, and may be mutable within the provider network. Network traffic originating outside the provider network is not directly routed to local IP addresses; instead, the traffic uses public IP addresses that are mapped to the local IP addresses of the resource instances. The provider network may include networking devices or appliances that provide network address translation (NAT) or similar functionality to perform the mapping from public IP addresses to local IP addresses and vice versa.

Public IP addresses are Internet mutable network addresses that are assigned to resource instances, either by the service provider or by the customer. Traffic routed to a public IP address is translated, for example via 1:1 NAT, and forwarded to the respective local IP address of a resource instance.

Some public IP addresses may be assigned by the provider network infrastructure to particular resource instances; these public IP addresses may be referred to as standard public IP addresses, or simply standard IP addresses. In some embodiments, the mapping of a standard IP address to a local IP address of a resource instance is the default launch configuration for all resource instance types.

At least some public IP addresses may be allocated to or obtained by customers of the provider network 700; a customer may then assign their allocated public IP addresses to particular resource instances allocated to the customer. These public IP addresses may be referred to as customer public IP addresses, or simply customer IP addresses. Instead of being assigned by the provider network 700 to resource instances as in the case of standard IP addresses, customer IP addresses may be assigned to resource instances by the customers, for example via an API provided by the service provider. Unlike standard IP addresses, customer IP addresses are allocated to customer accounts and can be remapped to other resource instances by the respective customers as necessary or desired. A customer IP address is associated with a customer's account, not a particular resource instance, and the customer controls that IP address until the customer chooses to release it. Unlike conventional static IP addresses, customer IP addresses allow the customer to mask resource instance or availability zone failures by remapping the customer's public IP addresses to any resource instance associated with the customer's account. The customer IP addresses, for example, enable a customer to engineer around problems with the customer's resource instances or software by remapping customer IP addresses to replacement resource instances.

FIG. 8 illustrates an example data center that implements an overlay network on a network substrate using IP tunneling technology, according to some embodiments. A provider data center 800 may include a network substrate that includes networking nodes 812 such as routers, switches, network address translators (NATs), and so on, which may be implemented as software, hardware, or as a combination thereof. Some embodiments may employ an Internet Protocol (IP) tunneling technology to provide an overlay network via which encapsulated packets may be passed through network substrate 810 using tunnels. The IP tunneling technology may provide a mapping and encapsulating system for creating an overlay network on a network (e.g., a local network in data center 800 of FIG. 8) and may provide a separate namespace for the overlay layer (the public IP addresses) and the network substrate 810 layer (the local IP addresses). Packets in the overlay layer may be checked against a mapping directory (e.g., provided by mapping service 830) to determine what their tunnel substrate target (local IP address) should be. The IP tunneling technology provides a virtual network topology (the overlay network); the interfaces (e.g., service APIs) that are presented to customers are attached to the overlay network so that when a customer provides an IP address to which the customer wants to send packets, the IP address is run in virtual space by communicating with a mapping service (e.g., mapping service 830) that knows where the IP overlay addresses are.

In some embodiments, the IP tunneling technology may map IP overlay addresses (public IP addresses) to substrate IP addresses (local IP addresses), encapsulate the packets in a tunnel between the two namespaces, and deliver the packet to the correct endpoint via the tunnel, where the encapsulation is stripped from the packet. In FIG. 8, an example overlay network tunnel 834A from a virtual machine (VM) 824A (of VMs 824A1-824A4, via VMM 822A) on host 820A to a device on the intermediate network 850 and an example overlay network tunnel 834B between a VM 824A (of VMs 824A1-824A4, via VMM 822A) on host 820A and a VM 824B (of VMs 824B1-824B4, via VMM 822B) on host 820B are shown. In some embodiments, a packet may be encapsulated in an overlay network packet format before sending, and the overlay network packet may be stripped after receiving. In other embodiments, instead of encapsulating packets in overlay network packets, an overlay network address (public IP address) may be embedded in a substrate address (local IP address) of a packet before sending, and stripped from the packet address upon receiving. As an example, the overlay network may be implemented using 32-bit IPv4 (Internet Protocol version 4) addresses as the public IP addresses, and the IPv4 addresses may be embedded as part of 128-bit IPv6 (Internet Protocol version 6) addresses used on the substrate network as the local IP addresses.

Referring to FIG. 8, at least some networks in which embodiments may be implemented may include hardware virtualization technology that enables multiple operating systems to run concurrently on a host computer (e.g., hosts 820A and 820B of FIG. 8), i.e. as virtual machines (VMs) 824 on the hosts 820. The VMs 824 may, for example, be executed in slots on the hosts 820 that are rented or leased to customers of a network provider. A hypervisor, or virtual machine monitor (VMM) 822, on a host 820 presents the VMs 824 on the host with a virtual platform and monitors the execution of the VMs 824. Each VM 824 may be provided with one or more local IP addresses; the VMM 822 on a host 820 may be aware of the local IP addresses of the VMs 824 on the host. A mapping service 830 may be aware of (e.g., via stored mapping information 832) network IP prefixes and IP addresses of routers or other devices serving IP addresses on the local network. This includes the IP addresses of the VMMs 822 serving multiple VMs 824. The mapping service 830 may be centralized, for example on a server system, or alternatively may be distributed among two or more server systems or other devices on the network. A network may, for example, use the mapping service technology and IP tunneling technology to, for example, route data packets between VMs 824 on different hosts 820 within the data center 800 network; note that an interior gateway protocol (IGP) may be used to exchange routing information within such a local network.

In addition, a network such as the provider data center 800 network (which is sometimes referred to as an autonomous system (AS)) may use the mapping service technology, IP tunneling technology, and routing service technology to route packets from the VMs 824 to Internet destinations, and from Internet sources to the VMs 824. Note that an external gateway protocol (EGP) or border gateway protocol (BGP) is typically used for Internet routing between sources and destinations on the Internet. FIG. 8 shows an example provider data center 800 implementing a network that provides resource virtualization technology and that provides full Internet access via edge router(s) 814 that connect to Internet transit providers, according to some embodiments. The provider data center 800 may, for example, provide customers the ability to implement virtual computing systems (VMs 824) via a hardware virtualization service and the ability to implement virtualized data stores 816 on storage resources 818A-818N via a storage service.

The data center 800 network may implement IP tunneling technology, mapping service technology, and a routing service technology to route traffic to and from virtualized resources, for example to route packets from the VMs 824 on hosts 820 in data center 800 to Internet destinations, and from Internet sources to the VMs 824. Internet sources and destinations may, for example, include computing systems 870 connected to the intermediate network 840 and computing systems 852 connected to local networks 850 that connect to the intermediate network 840 (e.g., via edge router(s) 814 that connect the network 850 to Internet transit providers). The provider data center 800 network may also route packets between resources in data center 800, for example from a VM 824 on a host 820 in data center 800 to other VMs 824 on the same host or on other hosts 820 in data center 800.

A service provider that provides data center 800 may also provide additional data center(s) 860 that include hardware virtualization technology similar to data center 800 and that may also be connected to intermediate network 840. Packets may be forwarded from data center 800 to other data centers 860, for example from a VM 824 on a host 820 in data center 800 to another VM on another host in another, similar data center 860, and vice versa.

While the above describes hardware virtualization technology that enables multiple operating systems to run concurrently on host computers as virtual machines (VMs) on the hosts, where the VMs may be instantiated on slots on hosts that are rented or leased to customers of the network provider, the hardware virtualization technology may also be used to provide other computing resources, for example storage resources 818A-818N, as virtualized resources to customers of a network provider in a similar manner.

FIG. 9 is a block diagram of an example provider network that provides a storage service and a hardware virtualization service to customers, according to some embodiments. Hardware virtualization service 920 provides multiple computation resources 924 (e.g., VMs) to customers. The computation resources 924 may, for example, be rented or leased to customers of the provider network 900 (e.g., to a customer that implements customer network 950). Each computation resource 924 may be provided with one or more local IP addresses. Provider network 900 may be configured to route packets from the local IP addresses of the computation resources 924 to public Internet destinations, and from public Internet sources to the local IP addresses of computation resources 924.

Provider network 900 may provide a customer network 950, for example coupled to intermediate network 940 via local network 956, the ability to implement virtual computing systems 992 via hardware virtualization service 920 coupled to intermediate network 940 and to provider network 900. In some embodiments, hardware virtualization service 920 may provide one or more APIs 902, for example a web services interface, via which a customer network 950 may access functionality provided by the hardware virtualization service 920, for example via a console 994 (e.g., a web-based application, standalone application, mobile application, etc.). In some embodiments, at the provider network 900, each virtual computing system 992 at customer network 950 may correspond to a computation resource 924 that is leased, rented, or otherwise provided to customer network 950.

From an instance of a virtual computing system 992 and/or another customer device 990 (e.g., via console 994), the customer may access the functionality of storage service 910, for example via one or more APIs 902, to access data from and store data to storage resources 918A-918N of a virtual data store 916 (e.g., a folder or “bucket”, a virtualized volume, a database, etc.) provided by the provider network 900. In some embodiments, a virtualized data store gateway (not shown) may be provided at the customer network 950 that may locally cache at least some data, for example frequently-accessed or critical data, and that may communicate with storage service 910 via one or more communications channels to upload new or modified data from a local cache so that the primary store of data (virtualized data store 916) is maintained. In some embodiments, a user, via a virtual computing system 992 and/or on another customer device 990, may mount and access virtual data store 916 volumes via storage service 910 acting as a storage virtualization service, and these volumes may appear to the user as local (virtualized) storage 998.

While not shown in FIG. 9, the virtualization service(s) may also be accessed from resource instances within the provider network 900 via API(s) 902. For example, a customer, appliance service provider, or other entity may access a virtualization service from within a respective virtual network on the provider network 900 via an API 902 to request allocation of one or more resource instances within the virtual network or within another virtual network.

In some embodiments, a system that implements a portion or all of the techniques for moving object recognition, speed estimation, and/or tagging as described herein may include a general-purpose computer system that includes or is configured to access one or more computer-accessible media, such as computer system 1000 illustrated in FIG. 10. In the illustrated embodiment, computer system 1000 includes one or more processors 1010 coupled to a system memory 1020 via an input/output (I/O) interface 1030. Computer system 1000 further includes a network interface 1040 coupled to I/O interface 1030. While FIG. 10 shows computer system 1000 as a single computing device, in various embodiments a computer system 1000 may include one computing device or any number of computing devices configured to work together as a single computer system 1000.

In various embodiments, computer system 1000 may be a uniprocessor system including one processor 1010, or a multiprocessor system including several processors 1010 (e.g., two, four, eight, or another suitable number). Processors 1010 may be any suitable processors capable of executing instructions. For example, in various embodiments, processors 1010 may be general-purpose or embedded processors implementing any of a variety of instruction set architectures (ISAs), such as the x86, ARM, PowerPC, SPARC, or MIPS ISAs, or any other suitable ISA. In multiprocessor systems, each of processors 1010 may commonly, but not necessarily, implement the same ISA.

System memory 1020 may store instructions and data accessible by processor(s) 1010. In various embodiments, system memory 1020 may be implemented using any suitable memory technology, such as random-access memory (RAM), static RAM (SRAM), synchronous dynamic RAM (SDRAM), nonvolatile/Flash-type memory, or any other type of memory. In the illustrated embodiment, program instructions and data implementing one or more desired functions, such as those methods, techniques, and data described above are shown stored within system memory 1020 as code 1025 and data 1026.

In one embodiment, I/O interface 1030 may be configured to coordinate I/O traffic between processor 1010, system memory 1020, and any peripheral devices in the device, including network interface 1040 or other peripheral interfaces. In some embodiments, I/O interface 1030 may perform any necessary protocol, timing or other data transformations to convert data signals from one component (e.g., system memory 1020) into a format suitable for use by another component (e.g., processor 1010). In some embodiments, I/O interface 1030 may include support for devices attached through various types of peripheral buses, such as a variant of the Peripheral Component Interconnect (PCI) bus standard or the Universal Serial Bus (USB) standard, for example. In some embodiments, the function of I/O interface 1030 may be split into two or more separate components, such as a north bridge and a south bridge, for example. Also, in some embodiments some or all of the functionality of I/O interface 1030, such as an interface to system memory 1020, may be incorporated directly into processor 1010.

Network interface 1040 may be configured to allow data to be exchanged between computer system 1000 and other devices 1060 attached to a network or networks 1050, such as other computer systems or devices as illustrated in FIG. 1, for example. In various embodiments, network interface 1040 may support communication via any suitable wired or wireless general data networks, such as types of Ethernet network, for example. Additionally, network interface 1040 may support communication via telecommunications/telephony networks such as analog voice networks or digital fiber communications networks, via storage area networks (SANs) such as Fibre Channel SANs, or via I/O any other suitable type of network and/or protocol.

In some embodiments, a computer system 1000 includes one or more offload cards 1070 (including one or more processors 1075, and possibly including the one or more network interfaces 1040) that are connected using an I/O interface 1030 (e.g., a bus implementing a version of the Peripheral Component Interconnect-Express (PCI-E) standard, or another interconnect such as a QuickPath interconnect (QPI) or UltraPath interconnect (UPI)). For example, in some embodiments the computer system 1000 may act as a host electronic device (e.g., operating as part of a hardware virtualization service) that hosts compute instances, and the one or more offload cards 1070 execute a virtualization manager that can manage compute instances that execute on the host electronic device. As an example, in some embodiments the offload card(s) 1070 can perform compute instance management operations such as pausing and/or un-pausing compute instances, launching and/or terminating compute instances, performing memory transfer/copying operations, etc. These management operations may, in some embodiments, be performed by the offload card(s) 1070 in coordination with a hypervisor (e.g., upon a request from a hypervisor) that is executed by the other processors 1010A-1010N of the computer system 1000. However, in some embodiments the virtualization manager implemented by the offload card(s) 1070 can accommodate requests from other entities (e.g., from compute instances themselves), and may not coordinate with (or service) any separate hypervisor.

In some embodiments, system memory 1020 may be one embodiment of a computer-accessible medium configured to store program instructions and data as described above. However, in other embodiments, program instructions and/or data may be received, sent or stored upon different types of computer-accessible media. Generally speaking, a computer-accessible medium may include non-transitory storage media or memory media such as magnetic or optical media, e.g., disk or DVD/CD coupled to computer system 1000 via I/O interface 1030. A non-transitory computer-accessible storage medium may also include any volatile or non-volatile media such as RAM (e.g., SDRAM, double data rate (DDR) SDRAM, SRAM, etc.), read only memory (ROM), etc., that may be included in some embodiments of computer system 1000 as system memory 1020 or another type of memory. Further, a computer-accessible medium may include transmission media or signals such as electrical, electromagnetic, or digital signals, conveyed via a communication medium such as a network and/or a wireless link, such as may be implemented via network interface 1040.

FIG. 11 illustrates a logical arrangement of a set of general components of an example computing device 1100 such as the network provider 100, computing device 200, etc. Generally, a computing device 1100 can also be referred to as an electronic device. The techniques shown in the figures and described herein can be implemented using code and data stored and executed on one or more electronic devices (e.g., a client end station and/or server end station). Such electronic devices store and communicate (internally and/or with other electronic devices over a network) code and data using computer-readable media, such as non-transitory computer-readable storage media (e.g., magnetic disks, optical disks, Random Access Memory (RAM), Read Only Memory (ROM), flash memory devices, phase-change memory) and transitory computer-readable communication media (e.g., electrical, optical, acoustical or other form of propagated signals, such as carrier waves, infrared signals, digital signals). In addition, such electronic devices include hardware, such as a set of one or more processors 1102 (e.g., wherein a processor is a microprocessor, controller, microcontroller, central processing unit, digital signal processor, application specific integrated circuit, field programmable gate array, other electronic circuitry, a combination of one or more of the preceding) coupled to one or more other components, e.g., one or more non-transitory machine-readable storage media (e.g., memory 1104) to store code (e.g., instructions 1114) and/or data, and a set of one or more wired or wireless network interfaces 1108 allowing the electronic device to transmit data to and receive data from other computing devices, typically across one or more networks (e.g., Local Area Networks (LANs), the Internet). The coupling of the set of processors and other components is typically through one or more interconnects within the electronic device, (e.g., busses and possibly bridges). Thus, the non-transitory machine-readable storage media (e.g., memory 1104) of a given electronic device typically stores code (e.g., instructions 1114) for execution on the set of one or more processors 1102 of that electronic device. One or more parts of various embodiments may be implemented using different combinations of software, firmware, and/or hardware.

A computing device 1100 can include some type of display element 1106, such as a touch screen or liquid crystal display (LCD), although many devices such as portable media players might convey information via other means, such as through audio speakers, and other types of devices such as server end stations may not have a display element 1106 at all. As discussed, some computing devices used in some embodiments include at least one input and/or output component(s) 1112 able to receive input from a user. This input component can include, for example, a push button, touch pad, touch screen, wheel, joystick, keyboard, mouse, keypad, or any other such device or element whereby a user is able to input a command to the device. In some embodiments, however, such a device might be controlled through a combination of visual and/or audio commands and utilize a microphone, camera, sensor, etc., such that a user can control the device without having to be in physical contact with the device.

As discussed, different approaches can be implemented in various environments in accordance with the described embodiments. For example, FIG. 12 illustrates an example of an environment 1200 for implementing aspects in accordance with various embodiments. For example, in some embodiments requests detailed above are HyperText Transfer Protocol (HTTP) requests that are received by a web server (e.g., web server 1206), and the users, via electronic devices, may interact with the provider network via a web portal provided via the web server 1206 and application server 1208. As will be appreciated, although a web-based environment is used for purposes of explanation, different environments may be used, as appropriate, to implement various embodiments. The system includes an electronic client device 1202, which may also be referred to as a client device and can be any appropriate device operable to send and receive requests, messages or information over an appropriate network 1204 and convey information back to a user of the device 1202. Examples of such client devices include personal computers (PCs), cell phones, handheld messaging devices, laptop computers, set-top boxes, personal data assistants, electronic book readers, wearable electronic devices (e.g., glasses, wristbands, monitors), and the like. The one or more networks 1204 can include any appropriate network, including an intranet, the Internet, a cellular network, a local area network, or any other such network or combination thereof. Components used for such a system can depend at least in part upon the type of network and/or environment selected. Protocols and components for communicating via such a network are well known and will not be discussed herein in detail. Communication over the network can be enabled via wired or wireless connections and combinations thereof. In this example, the network 1204 includes the Internet, as the environment includes a web server 1206 for receiving requests and serving content in response thereto, although for other networks an alternative device serving a similar purpose could be used, as would be apparent to one of ordinary skill in the art.

The illustrative environment includes at least one application server 1208 and a data store 1210. It should be understood that there can be several application servers, layers, or other elements, processes or components, which may be chained or otherwise configured, which can interact to perform tasks such as obtaining data from an appropriate data store. As used herein the term “data store” refers to any device or combination of devices capable of storing, accessing and retrieving data, which may include any combination and number of data servers, databases, data storage devices and data storage media, in any standard, distributed or clustered environment. The application server 1208 can include any appropriate hardware and software for integrating with the data store 1210 as needed to execute aspects of one or more applications for the client device 1202 and handling a majority of the data access and business logic for an application. The application server 1208 provides access control services in cooperation with the data store 1210 and is able to generate content such as text, graphics, audio, video, etc., to be transferred to the client device 1202, which may be served to the user by the web server in the form of HyperText Markup Language (HTML), Extensible Markup Language (XML), JavaScript Object Notation (JSON), or another appropriate unstructured or structured language in this example. The handling of all requests and responses, as well as the delivery of content between the client device 1202 and the application server 1208, can be handled by the web server 1206. It should be understood that the web server 1206 and application server 1208 are not required and are merely example components, as structured code discussed herein can be executed on any appropriate device or host machine as discussed elsewhere herein.

The data store 1210 can include several separate data tables, databases, or other data storage mechanisms and media for storing data relating to a particular aspect. For example, the data store illustrated includes mechanisms for storing production data 1212 and user information 1216, which can be used to serve content for the production side. The data store 1210 also is shown to include a mechanism for storing log or session data 1214. It should be understood that there can be many other aspects that may need to be stored in the data store, such as page image information and access rights information, which can be stored in any of the above listed mechanisms as appropriate or in additional mechanisms in the data store 1210. The data store 1210 is operable, through logic associated therewith, to receive instructions from the application server 1208 and obtain, update, or otherwise process data in response thereto. In one example, a user might submit a search request for a certain type of item. In this case, the data store 1210 might access the user information 1216 to verify the identity of the user and can access a production data 1212 to obtain information about items of that type. The information can then be returned to the user, such as in a listing of results on a web page that the user is able to view via a browser on the user device 1202. Information for a particular item of interest can be viewed in a dedicated page or window of the browser.

The web server 1206, application server 1208, and/or data store 1210 may be implemented by one or more electronic devices 1220, which can also be referred to as electronic server devices or server end stations, and may or may not be located in different geographic locations. Each of the one or more electronic devices 1220 may include an operating system that provides executable program instructions for the general administration and operation of that device and typically will include computer-readable medium storing instructions that, when executed by a processor of the device, allow the device to perform its intended functions. Suitable implementations for the operating system and general functionality of the devices are known or commercially available and are readily implemented by persons having ordinary skill in the art, particularly in light of the disclosure herein.

The environment in one embodiment is a distributed computing environment utilizing several computer systems and components that are interconnected via communication links, using one or more computer networks or direct connections. However, it will be appreciated by those of ordinary skill in the art that such a system could operate equally well in a system having fewer or a greater number of components than are illustrated in FIG. 12. Thus, the depiction of the environment 1200 in FIG. 12 should be taken as being illustrative in nature and not limiting to the scope of the disclosure.

Various embodiments discussed or suggested herein can be implemented in a wide variety of operating environments, which in some cases can include one or more user computers, computing devices, or processing devices which can be used to operate any of a number of applications. User or client devices can include any of a number of general purpose personal computers, such as desktop or laptop computers running a standard operating system, as well as cellular, wireless, and handheld devices running mobile software and capable of supporting a number of networking and messaging protocols. Such a system also can include a number of workstations running any of a variety of commercially-available operating systems and other known applications for purposes such as development and database management. These devices also can include other electronic devices, such as dummy terminals, thin-clients, gaming systems, and/or other devices capable of communicating via a network.

Most embodiments utilize at least one network that would be familiar to those skilled in the art for supporting communications using any of a variety of commercially-available protocols, such as Transmission Control Protocol/Internet Protocol (TCP/IP), File Transfer Protocol (FTP), Universal Plug and Play (UPnP), Network File System (NFS), Common Internet File System (CIFS), Extensible Messaging and Presence Protocol (XMPP), AppleTalk, etc. The network(s) can include, for example, a local area network (LAN), a wide-area network (WAN), a virtual private network (VPN), the Internet, an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network, and any combination thereof.

In embodiments utilizing a web server, the web server can run any of a variety of server or mid-tier applications, including HTTP servers, File Transfer Protocol (FTP) servers, Common Gateway Interface (CGI) servers, data servers, Java servers, business application servers, etc. The server(s) also may be capable of executing programs or scripts in response requests from user devices, such as by executing one or more Web applications that may be implemented as one or more scripts or programs written in any programming language, such as Java®, C, C# or C++, or any scripting language, such as Perl, Python, PHP, or TCL, as well as combinations thereof. The server(s) may also include database servers, including without limitation those commercially available from Oracle(R), Microsoft(R), Sybase(R), IBM(R), etc. The database servers may be relational or non-relational (e.g., “NoSQL”), distributed or non-distributed, etc.

The environment can include a variety of data stores and other memory and storage media as discussed above. These can reside in a variety of locations, such as on a storage medium local to (and/or resident in) one or more of the computers or remote from any or all of the computers across the network. In a particular set of embodiments, the information may reside in a storage-area network (SAN) familiar to those skilled in the art. Similarly, any necessary files for performing the functions attributed to the computers, servers, or other network devices may be stored locally and/or remotely, as appropriate. Where a system includes computerized devices, each such device can include hardware elements that may be electrically coupled via a bus, the elements including, for example, at least one central processing unit (CPU), at least one input device (e.g., a mouse, keyboard, controller, touch screen, or keypad), and/or at least one output device (e.g., a display device, printer, or speaker). Such a system may also include one or more storage devices, such as disk drives, optical storage devices, and solid-state storage devices such as random-access memory (RAM) or read-only memory (ROM), as well as removable media devices, memory cards, flash cards, etc.

Such devices also can include a computer-readable storage media reader, a communications device (e.g., a modem, a network card (wireless or wired), an infrared communication device, etc.), and working memory as described above. The computer-readable storage media reader can be connected with, or configured to receive, a computer-readable storage medium, representing remote, local, fixed, and/or removable storage devices as well as storage media for temporarily and/or more permanently containing, storing, transmitting, and retrieving computer-readable information. The system and various devices also typically will include a number of software applications, modules, services, or other elements located within at least one working memory device, including an operating system and application programs, such as a client application or web browser. It should be appreciated that alternate embodiments may have numerous variations from that described above. For example, customized hardware might also be used and/or particular elements might be implemented in hardware, software (including portable software, such as applets), or both. Further, connection to other computing devices such as network input/output devices may be employed.

Storage media and computer readable media for containing code, or portions of code, can include any appropriate media known or used in the art, including storage media and communication media, such as but not limited to volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage and/or transmission of information such as computer readable instructions, data structures, program modules, or other data, including RAM, ROM, Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory or other memory technology, Compact Disc-Read Only Memory (CD-ROM), Digital Versatile Disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a system device. Based on the disclosure and teachings provided herein, a person of ordinary skill in the art will appreciate other ways and/or methods to implement the various embodiments.

In the preceding description, various embodiments are described. For purposes of explanation, specific configurations and details are set forth in order to provide a thorough understanding of the embodiments. However, it will also be apparent to one skilled in the art that the embodiments may be practiced without the specific details. Furthermore, well-known features may be omitted or simplified in order not to obscure the embodiment being described.

Bracketed text and blocks with dashed borders (e.g., large dashes, small dashes, dot-dash, and dots) are used herein to illustrate optional operations that add additional features to some embodiments. However, such notation should not be taken to mean that these are the only options or optional operations, and/or that blocks with solid borders are not optional in certain embodiments.

Reference numerals with suffix letters (e.g., 918A-918N) may be used to indicate that there can be one or multiple instances of the referenced entity in various embodiments, and when there are multiple instances, each does not need to be identical but may instead share some general traits or act in common ways. Further, the particular suffixes used are not meant to imply that a particular amount of the entity exists unless specifically indicated to the contrary. Thus, two entities using the same or different suffix letters may or may not have the same number of instances in various embodiments.

References to “one embodiment,” “an embodiment,” “an example embodiment,” etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.

Moreover, in the various embodiments described above, unless specifically noted otherwise, disjunctive language such as the phrase “at least one of A, B, or C” is intended to be understood to mean either A, B, or C, or any combination thereof (e.g., A, B, and/or C). As such, disjunctive language is not intended to, nor should it be understood to, imply that a given embodiment requires at least one of A, at least one of B, or at least one of C to each be present.

The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. It will, however, be evident that various modifications and changes may be made thereunto without departing from the broader spirit and scope of the disclosure as set forth in the claims. 

What is claimed is:
 1. A computer-implemented method comprising: receiving a video at a video processing service of a provider network; processing the received video using the video processing service of the provider network to associate individual frames of the video with individual timestamps; receiving request to determine an estimated speed of one or more objects of the received video; detecting and recognizing one or more objects of interest in at least two frames of the video to be used in determining an estimated speed using an object recognition service; querying for a size of the one or more recognized objects of interest; calculating, using a hosted machine learning model, for at least the two frames of the video, a 3-dimensional (3D) position of the object of interest, using intrinsic values for a source of the video, based on the size of the recognized object of interest and bounding box for the recognized object of interest; calculating an estimated speed of the recognized object of interest based upon a difference between 3D positions of the recognized object of interest in two frames and a time difference between said frames; adding a tag to metadata of the video for the object including the estimated speed of the recognized object of interest; and providing the estimated speed to a requester from the metadata.
 2. The computer-implemented method of claim 1, further comprising: determining an object detection and recognition model to use based upon one or more of the content of the video, the received request, and an indication of failure of a previously utilized object detection and recognition model.
 3. The computer-implemented method of claim 1, the calculation of a 3D position of the object of interest utilizes a pinhole camera model.
 4. A computer-implemented method comprising: receiving a video; receiving request to determine an estimated speed of one or more objects of the received video; recognizing one or more objects of interest in at least two frames of the video to be used in determining an estimated speed; querying for a size of the one or more recognized objects of interest; calculating, for at least the two frames of the video, a 3-dimensional (3D) position of the object of interest using intrinsic values for a source of the video based on the size of the recognized object of interest and points of interest on the recognized object of interest; calculating an estimated speed of the recognized object of interest based upon a difference between 3D positions of the recognized object of interest in two frames and a time difference between said frames; adding a tag to metadata of the video for the recognized object including the estimated speed of the object of interest; and providing the estimated speed to a requester from the metadata.
 5. The computer-implemented method of claim 4, further comprising: processing the received video to associate individual frames of the video with individual timestamps.
 6. The computer-implemented method of claim 4, wherein the calculation of a 3D position of the object of interest utilizes a pinhole camera model.
 7. The computer-implemented method of claim 4, wherein the intrinsics include at least a focal length of the source of the video, an optical center, and a skew coefficient.
 8. The computer-implemented method of claim 4, further comprising: selecting a machine learning model to perform the recognizing one or more objects of interest in at least two frames of the video to be used in determining an estimated speed based on content of the video.
 9. The computer-implemented method of claim 4, wherein machine learning model to perform the recognizing one or more objects of interest in at least two frames of the video to be used in determining an estimated speed has been trained on the objects of interest and is hosted on a provider network.
 10. The computer-implemented method of claim 4, wherein the request includes an identifier of the video and an object type to analyze.
 11. The computer-implemented method of claim 4, wherein the request includes an identifier of the video and an identifier of an object to estimate speed from the video.
 12. The computer-implemented method of claim 11, wherein the identifier of an object to estimate speed from the video is a user generated bounding box.
 13. The computer-implemented method of claim 4, wherein the source of the video is a stationary camera.
 14. The computer-implemented method of claim 4, wherein the points of interest comprise a bounding box.
 15. The computer-implemented method of claim 4, wherein the points of interest comprise at least three anchor points on the image.
 16. A system comprising: an object recognition service implemented by a first one or more electronic devices to recognize one or more objects of interest in at least two frames of a video to be used in determining an estimated speed and position of the one or more objects of interest; an estimated speed and estimated 3D position service implemented by a second one or more electronic devices, the estimated speed and estimated 3D position service including instructions that upon execution cause the estimated speed and estimated 3D position service to: calculate for at least the two frames of the video, a 3-dimensional (3D) position of the object of interest, using intrinsic values for a source of the video, based on the size of the recognized object of interest and points of interest of the recognized object of interest, calculate an estimated speed of the recognized object of interest based upon a difference between 3D positions of the recognized object of interest in two frames and a time difference between said frames, and add a tag to metadata of the video for the object including the estimated speed of the recognized object of interest.
 17. The system of claim 16, wherein the calculation of a 3D position of the object of interest utilizes a pinhole camera model.
 18. The system of claim 16, wherein the intrinsics include at least a focal length of the source of the video, an optical center, and a skew coefficient.
 19. The system of claim 16, wherein the points of interest comprise a bounding box.
 20. The system of claim 16, wherein the points of interest comprise at least three anchor points on the image. 